package cn.lanqiao.springboot.mapper;

import cn.lanqiao.springboot.entity.Menu;
import cn.lanqiao.springboot.vo.QueryMenuVO;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MenuMapper {
    @Select("select * from system_menu where menu_id in (select menu_id from system_role_menu where role_id = #{roleId})")
    List<Menu> getList(int roleId);

    @Select("select * from system_menu")
    List<Menu> getALLMenuList(QueryMenuVO queryMenuVO);
}
